package com.xq.sqlSession;

import com.xq.pojo.Configuration;

/**
 * @Author: xiaoqiang
 * @Description:
 * @Date: 2021/5/29
 * @Version: 1.0
 */
public class DefaultSqlSessionFactory implements SqlSessionFactory {
    private Configuration configuration;

    public DefaultSqlSessionFactory(Configuration configuration) {
        this.configuration = configuration;
    }

    @Override
    public SqlSession openSqlSession() {
        return new DefaultSqlSession(configuration);
    }
}
